package com.wordsay.entity;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import org.lionsoul.jcseg.core.IWord;


public class Talk {
	
	//talk's speaker
	private People speaker;
	//talk date time
	private Calendar time;
	//talk message content
	private StringBuffer message = new StringBuffer();
	//分词之后的结果
	private List<IWord> iwords = new ArrayList<IWord>();
	
	public void appendMessage(String message){
		
		this.message.append(message);
	}
	
	public People getSpeaker() {
		return speaker;
	}
	public void setSpeaker(People speaker) {
		this.speaker = speaker;
	}
	public Calendar getTime() {
		return time;
	}
	public void setTime(Calendar time) {
		this.time = time;
	}
	public StringBuffer getMessage() {
		return message;
	}
	public void setMessage(StringBuffer message) {
		this.message = message;
	}

	public List<IWord> getIwords() {
		return iwords;
	}

	public void setIwords(List<IWord> iwords) {
		this.iwords = iwords;
	}

}
